package bg.btanev.eightyfour.shared.dto.profile.feed;

import bg.btanev.eightyfour.shared.dto.profile.ProfileDto;

/**
 *
 * @author B.Tanev
 *
 */
public class FeedProfileDto extends ProfileDto<FeedProfileEventDto> {
	/**
	 *
	 */
	private static final long serialVersionUID = 7764489007641928384L;

	private String feedUrl;

	public FeedProfileDto() {
		super();
	}

	public String getFeedUrl() {
		return feedUrl;
	}

	public void setFeedUrl(String feedUrl) {
		this.feedUrl = feedUrl;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((feedUrl == null) ? 0 : feedUrl.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		FeedProfileDto other = (FeedProfileDto) obj;
		if (feedUrl == null) {
			if (other.feedUrl != null)
				return false;
		} else if (!feedUrl.equals(other.feedUrl))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "FeedProfileDto [feedUrl=" + feedUrl + ", toString()=" + super.toString() + "]";
	}
}
